//定义登录接口参数TS类型
interface loginParams {
    username: String,
    password: String
}

//全局定义接口返回类型
interface ResponseData{
    code:number,
    message:string,
    ok:boolean
}


//定义登录接口返回TS类型
interface loginResponseData extends ResponseData{
    data:string
}



//定义用户接口类型
interface userInfoResponseData extends ResponseData{
    data:{
        routes:string[],
        buttons:string[],
        roles:string[],
        name:string,
        avatar:string
    }
}



export type { loginParams,loginResponseData,userInfoResponseData }
